package com.healthy.service.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import com.alibaba.fastjson.JSONObject;
import com.healthy.entity.YgAdmins;
import com.healthy.mapper.YgAdminsMapper;
import com.healthy.service.YgAdminsService;


/**
 * 
 * @author HGB丶阳光
 * @date 2020年6月10日
 * @description: Service层实现类
 *
 */
@Service
@Transactional
public class YgAdminsServiceImpl implements YgAdminsService{

	@Autowired
	private YgAdminsMapper adminMapper;

	//管理员登录
	@Override
	public YgAdmins adminLogin(String username, String password) {
		YgAdmins admin = adminMapper.adminLogin(username, password);
		if(admin != null){
			return admin;
		}else{
			return null;
		}
	}

	/*
	 * Excel文件内容解析入库
	 */
	@Override
	public JSONObject ExcelImport(MultipartFile file, HttpServletRequest request) {
		
		
		return null;
	}
	
	/*
	 * 管理员修改商品在售状态
	 */
	@Override
	public JSONObject updateMerchStatus(String merch_id, Integer newStatus) {
		
		
		
		
		return null;
	}
	
	/*
	 * 管理员查看商城商品
	 */
	@Override
	public JSONObject queryMerchList() {
		// TODO Auto-generated method stub
		return null;
	}

	
}
